<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//{
//    "button": [
//        {
//            "type": "view",
//            "name": "登陆",
//            "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxfb616cccbabd84a7&redirect_uri=http://kvbxf5.natappfree.cc/api/weixin/getOpenID&response_type=code&scope=snsapi_base",
//            "sub_button": [ ]
//        }
//    ]
//}

Route::get('/', function () {
    return view('User.Login.login');
});

Route::get('/homePage','web\UserController@homePage');//首页

Route::get('/getCaptcha','web\UserController@getCaptcha');//验证码

Route::post('user/login','web\UserController@login');

Route::group(['prefix' => 'home','namespace' => 'web'],function(){
    Route::group(['prefix' => 'user'],function (){
        Route::get('registPage','UserController@register');//注册页面
        Route::post('regist','UserController@regist');//注册
        Route::get('getList','UserController@getList');//列表页
        Route::get('list','UserController@userList');//列表页
    });

    Route::group(['prefix' => 'log'],function(){
        Route::get('getList','LogController@getList');//获取日志列表
        Route::get('getListView','LogController@getListView');//操作日志列表页
    });

});
